package com.linkhub.oms.admin.modules.product.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description: LocalProductExcelVO
 * @Author: echo
 * @Date: 2024/5/11 20:42
 * @Version: 1.0
 */
@Data
@ApiModel("LocalProductExcelVO")
public class LocalProductExcelVO implements Serializable {

    @ApiModelProperty("failTotal")
    private int failTotal;

    @ApiModelProperty("successTotal")
    private int successTotal;

    public static LocalProductExcelVO failResult(int failTotal) {
        LocalProductExcelVO vo = new LocalProductExcelVO();
        vo.setFailTotal(failTotal);
        vo.setSuccessTotal(0);

        return vo;
    }
    public static LocalProductExcelVO successResult(int failTotal, int successTotal) {
        LocalProductExcelVO vo = new LocalProductExcelVO();
        vo.setFailTotal(failTotal);
        vo.setSuccessTotal(successTotal);

        return vo;
    }
}
